From dfe0c8c0ca4823c77fa71b0048f6454958170b4e Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Fri, 7 Aug 2009 15:39:49 +0300 Subject: [PATCH] Revert "Bug 590959 - Set child_has_focus flag properly" This reverts commit 6e0af6c25225440263792a3cbecd8f4301e3def5. The patch seems to break focus handling in some applications, like Epiphany. --- gtk/gtknotebook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index a349add786..aa1a5ade06 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -3094,6 +3094,8 @@ static gint gtk_notebook_focus_in (GtkWidget *widget, GdkEventFocus *event) { + GTK_NOTEBOOK (widget)->child_has_focus = FALSE; + gtk_notebook_redraw_tabs (GTK_NOTEBOOK (widget)); return FALSE; @@ -3976,8 +3978,6 @@ gtk_notebook_set_focus_child (GtkContainer *container, } } } - else - notebook->child_has_focus = FALSE; GTK_CONTAINER_CLASS (gtk_notebook_parent_class)->set_focus_child (container, child); } -- 2.30.2